package butines.core.game.steering;

import java.util.Collection;

import butines.core.game.Vehicle;
import butines.core.math.Vector2f;

public class SeparationBehavior extends AbstractBehavior {

	private Vehicle owner;
	private Collection<Vehicle> neighbors;
	private Vector2f steeringForce;

	public SeparationBehavior(Vehicle owner) {
		this.owner = owner;
	}

	@Override
	public Vector2f calculate() {
		return steeringForce = separation(owner, neighbors);
	}

	public Vector2f getSteeringForce() {
		return steeringForce;
	}

	public Collection<Vehicle> getNeighbors() {
		return neighbors;
	}

	public void setNeighbors(Collection<Vehicle> neighbors) {
		this.neighbors = neighbors;
	}
	
}
